﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using WPF数据采集系统.BLL;
using WPF数据采集系统.MesClass;
using WPF数据采集系统.Model;
using WPF数据采集系统.ViewModel;

namespace WPF数据采集系统.Base
{
    public class GlobalMonitor
    {
        public static void Start(Action sucessAction, Action<string> faultAction)
        {
            sucessAction();//加载窗体

            //连接PLC--监测PLC与MES状态
            PlcStateMonitor psm = new PlcStateMonitor();
            MainWindow.mvm.PlcState = true;
            psm.MainRun(MainWindow.mvm.PlcState);//监测PLC
        }
    }
}
